/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package main.models;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

/**
 *
 * @author Ariman
 */
@ManagedBean
@SessionScoped
public class Player implements Cloneable {

    private Long UID;
    private String name;
    private String gameName;
    private boolean creator;

    public Player() {
    }

    public Long getUID() {
        return UID;
    }

    public void setUID(Long UID) {
        this.UID = UID;
    }

    public boolean isCreator() {
        return creator;
    }

    public void setCreator(boolean creator) {
        this.creator = creator;
    }

    public String getGameName() {
        return gameName;
    }

    public void setGameName(String gameName) {
        this.gameName = gameName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    protected Player clone() {
        Player cloned = new Player();
        
        cloned.UID = UID;
        cloned.gameName = gameName;
        cloned.name = name;
        cloned.creator = creator;

        return cloned;
    }
}
